﻿<!DOCTYPE html>
<html ng-app="app">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <link href="~/Content/ui-bootstrap-csp.css" rel="stylesheet" />
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
</head>
<body>

    <div ng-controller="NavBarController">
        <div class="navbar navbar-inverse navbar-fixed-top" style="padding: 28px; background-color: skyblue">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    @Html.ActionLink("Save Those Notes", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
                </div>
                <div class="navbar-collapse collapse">
                    <ul class="nav navbar-nav">
                        <li>@Html.ActionLink("Home", "Index", "Home", new { area = "" }, null)</li>
                        <li>@Html.ActionLink("API", "Index", "Help", new { area = "" }, null)</li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right" ng-show="status.isLoggedIn">
                        <li><a>Welcome {{user.username}}</a></li>
                        <li><a ng-click="logout()">Logout</a></li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right" ng-hide="status.isLoggedIn">
                        <li><a href="#/Register">Register</a></li>
                        <li><a href="#/Login">Login</a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="container body-content" style="margin-top:80px">
            <div class="row">
                @RenderBody()
            </div>
            <div class="row">
                <hr />
                <footer>
                    <p>&copy; @DateTime.Now.Year - Save Those Notes</p>
                </footer>
            </div>
        </div>
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @Scripts.Render("~/bundles/angular")
    @Scripts.Render("~/bundles/app")
    @RenderSection("scripts", required: false)
</body>
</html>